@include('common/message')
<h3><a href="{{url('menu/add')}}">新增</a></h3>
<table>
    <thead>
    <th>id</th>
    <th>parent_id</th>
    <th>order</th>
    <th>title</th>
    <th>icon</th>
    <th>uri</th>
    <th>created_at</th>
    <th>updated_at</th>
    <th>操作</th>
    </thead>
    <tbody>
    @foreach($menus as $v)
    <tr>
        <td>{{$v->id}}</td>
        <td>{{$v->parent_id}}</td>
        <td>{{$v->order}}</td>
        <td>{{$v->title}}</td>
        <td>{{$v->icon}}</td>
        <td>{{$v->uri}}</td>
        <td>{{date("Y-m-d H:i:s",strtotime($v->created_at))}}</td>
        <td>{{date("Y-m-d H:i:s",strtotime($v->updated_at))}}</td>
        <td><a href="{{url('menu/edit',['id'=>$v->id])}}">编辑</a>||<a href="{{url('menu/del',['id'=>$v->id])}}"
            onclick="if(confirm('确定删除吗？')===false) return false">删除</a></td>
    </tr>
    </tbody>
    @endforeach
</table>
<div>
        {{$menus->render()}}
</div>